package spring.demo.security.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import spring.demo.security.entity.SysUser;

/**
 * Created by td on 2017/10/11.
 */
public interface UserRepository extends JpaRepository<SysUser,Integer> {
  /*  SysUser   @Query("select p from Person p where p.name = ?1")
    List<Person> findByName(String name);*/
   // @Query("select p from  p where p.name = ?1")
  //  SysUser findByName(String name);

      SysUser findByName(String name);

     // SysUser update(SysUser sysUser);

    //  SysUser saveUser(SysUser sysUser);






}
